package com.tongji.seller.events
{ 	
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	
	/**
	 * 
	 * @author jiarong
	 * 用户产品管理，包括增删改查
	 */
	public class AddUserProductEvent extends Event
	{
		public static const ADD_USER_PRODUCT:String = "addUserProduct";
		public static const GET_USER_PRODUCT:String = "getUserProduct";
		
		public static const UPDATE_USER_MODEL:String = "updateUserModel";
		public static const DELETE_USER_PRODUCT:String = "deleteUserProduct";
		
		public static const DELETE_A_PICTURE:String = "deletePicture";
		
		public var userId:Number;
		public var imgUrlList:Array;
		public var str:String;
		public var imgId:Number;
		
		/**
		 * 
		 * @param type
		 * ADD_USER_PRODUCT：更新用户产品
		 * @param userId
		 * userId：用户ID
		 * @param imgUrlList
		 * imgUrlList：图片地址
		 * 
		 */		
		
		public function AddUserProductEvent(type:String, userId:Number, imgUrlList:Array = null, imgId:Number = 0, str:String = "")
		{
			super(type, true);
			this.userId = userId;
			this.imgUrlList = imgUrlList;
			this.imgId = imgId;
			this.str = str;
		}
		
		override public function clone():Event
		{
			return new AddUserProductEvent(type, userId, imgUrlList, imgId, str);
		}
	}
}